﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameBase;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GalaxyPresident
{
    public class OilWell : ExploitBuilding
    {
        private static Texture2D texture = Constant.content.Load<Texture2D>(@"Resources/OilWell");
        private static Texture2D texture_s = Constant.content.Load<Texture2D>(@"Resources/OilWell_s");

        public override string getObjectName()
        {
            return "Oil Well";
        }

        public OilWell(Planet planet)
            : base(planet)
        {
            sprite_s = new Sprite(texture_s, 1, 5,
                new List<int> { 0}, 150);
            sprite = new Sprite(texture, 3, 3,
                new List<int> { 0, 1, 2, 3 }, 150);

            initSprites(planet);
        }

        protected override void initInfo()
        {
            meterialCost = 800;
            moneyCost = 1200;
            energyCost = 300;

            _healthPoint = 2500;
            _defense = 0.1f;

            numberOfExploit = 4;
        }

        protected override void increaseResources()
        {
            PlanetOwner.Energy += numberOfExploit + numberOfExploit * percentAccending;
        }
    }
}
